package day03;

public class OperDemo {
    public static void main(String[] args) {
        /*
        int a=5,b=6;
        a++;
        ++b;
        System.out.println(a);
        System.out.println(b);
        int c=5,d=5;
        int e=d++;
        int f=++d;
        System.out.println(e);
        System.out.println(f);
        int g=c+++4;
        System.out.println(g);
        int h=++c+4;
        System.out.println(h);
        int i=5;
        int j=++i+2;
        System.out.println(j);
        */
        /*
        int a=5,b=10,c=5;
        */
        /*
         int a=5,b=10,c=5;
         boolean b1= b>=a && b<c;
        System.out.println(b1);
        System.out.println(b<=a+c);
        System.out.println(a>=c);
        System.out.println(a<=c);
        System.out.println(a>c);
        int age=80;
        System.out.println(age>55 && age>=80);
        System.out.println(age<90 || age>=90);
        System.out.println(age=90%10);
        */
        /*
        int a=5,b=10,c=5;
        boolean b1=!(a<b);
        System.out.println(b1);
        System.out.println(!(a<c));
        System.out.println(!(b<a+c));
        System.out.println(!(b==a+c));
        */
        /*
        int a=5;
        a +=20;
        System.out.println(a);
        a *=3;
        System.out.println(a);
        a /=3;
        System.out.println(a);
        short s=10;
        s +=20;
        System.out.println(s);
 */
        /*
        int age=22;
        System.out.println("age"+22);
        System.out.println("我今年"+age+"岁了");
        String name="LXY";
        System.out.println("我叫"+name);
        System.out.println("我叫"+name+ "我今年"+age+"岁了");

         */
        /*
        System.out.println(10+""+10+10);
        System.out.println(""+20+20+20);
        System.out.println(30+30+30+""+(30-30)+30);
        */
        int a=10,b=5;
        int max=a>b?a:b;
        System.out.println(max);
        int c=5,d=10;
        int zxc=a>b?a:b;
        System.out.println(zxc);
        int num=0;
        int flag=num>0?11:-11;
        System.out.println(flag);

    }
}
